package com.gcj.study03.controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by gcj 2021.01.05
 */
@RestController
public class LoglobackController {

    private static final Logger logger = LoggerFactory.getLogger("sys-user");
    private static final Logger nice = LoggerFactory.getLogger("sys-nice");


    @RequestMapping(value = "index", method = RequestMethod.GET)
    public String index() {
        logger.info("====关闭会话验证任务====");
        nice.info("====关闭会话验证任务====景哥牛逼！！！！");
        return "The Way 1 : " ;
    }
    @RequestMapping(value = "easy")
    public String easy() {

        return "very easy!!!";
    }
}
